import request from '@/utils/request'


// 获取详情
export const exerciseInfo = (params) => {
    return request.get('/article-exercise', { params })
}

// 加入练习
export const join = (params) => {
    return request.post('/article-exercise/join', params)
}

// 开始练习
export const startExercise = (params) => {
    return request.post('/article-exercise/start', params)
}

// 保存答案
export const saveAnswer = (params) => {
    return request.post('/article-exercise/answer', params)
}

// 结束答题
export const submitExercise = (params) => {
    return request.post('/article-exercise/submit', params)
}

// 结束本次课程
export const finishCourse = (params) => {
    return request.post('/article-exercise/finish', params)
}



